package com.wulin.learning.设计模式.工厂方法模式;

public class Client {

    public static void main(String[] args) {
        LoggerFactory factory;
        Logger logger;
        factory = new FileLoggerFactory();//可通过配置实现类全路径到配置文件，反射拿到。
        logger = factory.createLogger();
        logger.writeLog();
    }
}
